Installation
npm install --save @types/console-log-level
Summary
This package contains type definitions for console-log-level (https://github.com/watson/console-log-level).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/console-log-level.
type PrefixFunction = (level: string) => string;
declare namespace consoleLogLevel {
type LogLevelNames = "trace" | "debug" | "info" | "warn" | "error" | "fatal";
type Logger = Record<LogLevelNames, (...args: any[]) => void>;
}
interface Options {
level?: consoleLogLevel.LogLevelNames | undefined;
prefix?: string | PrefixFunction | undefined;
stderr?: boolean | undefined;
}
declare function consoleLogLevel(opts?: Options): consoleLogLevel.Logger;
export = consoleLogLevel;
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: none
Credits
These definitions were written by Ali Ijaz Sheikh.